// pages/wxml/wxml.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    name:"alice",
    age:11,
    flag:true,
    sex:null,
    arr:[1,34,89,67,3],
    user:{
        id:9527,
        name:"cici",
        age:20
    },
    imgs:["yang.png","liu.png","tang.png"],
    time:new Date(),
    hobby:undefined,
    users:[
        {
            id:1001,
            name:"tom",
            age:20
        },
        {
            id:1002,
            name:"jack",
            age:30
        },
        {
            id:1003,
            name:"lucy",
            age:10
        }
    ]
  },

  showView(){
      // console.log(this.data.flag);
      this.setData({
          flag:!this.data.flag
      });
  }
})